/**
 * Mentions 组件的主题配置
 */

import type { ComponentToken } from 'antd/es/mentions/style';

export const mentionsThemeConfig: Partial<ComponentToken> = {
  zIndexPopup: 1050,
  dropdownHeight: 250,
  controlItemWidth: 100,
};

export const getMentionsTheme = (
  customConfig?: Partial<ComponentToken>
): Partial<ComponentToken> => {
  return {
    ...mentionsThemeConfig,
    ...customConfig,
  };
};

export type { ComponentToken as MentionsComponentToken } from 'antd/es/mentions/style';

